package util;

import java.io.*;

/**
 * Salvar em arquivo fisico.
 * 
 * @author WILSON CARLOS GOMES MARTINS - PD'S.
 */

public class WriteTxt {

	public static void whiteFile(String dir, String fileName, StringBuffer content) throws IOException {
		new File(dir).mkdirs();

		File arquivo = new File(dir + fileName);
		FileOutputStream fos = new FileOutputStream(arquivo);
		fos.write(content.toString().getBytes());
		fos.close();

	}
}
